<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入layui样式表 -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 引入自己的样式表 -->
    <link rel="stylesheet" href="/assets/css/user/user_infor.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">卡片面板</div>
        <div class="layui-card-body">
            <!-- lay-filter="" 这个属性是layui中给表单复制的属性 自定义值给js中form.val('filter', object)第一个值当参数 -->
            <form class="layui-form" lay-filter="formUserInfor">
                <!-- 这是一个隐藏域 -->
                <input type="hidden" name="id" value="">
                <div class="layui-form-item">
                    <label class="layui-form-label">登录名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" required placeholder="请输入登录名称" autocomplete="off"
                            class="layui-input" readonly>
                        <!-- readonly属性 不允许修改表单 -->
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户昵称</label>
                    <div class="layui-input-block">
                        <input type="text" name="nickname" required lay-verify="required|nickname" placeholder="请输入用户昵称"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户邮箱</label>
                    <div class="layui-input-block">
                        <input type="text" name="email" required lay-verify="required|email" placeholder="请输入用户邮箱"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary" id="btnReset">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- 引入layui的js脚本 -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 引入jquery的脚本 -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 引入ajax拼接链接 -->
    <script src="/assets/js/baseAPI.js"></script>
    <!-- 引入自己的js样式 -->
    <script src="/assets/js/user/user_infor.js"></script>

</body>

</html>